import { defineConfig } from '@rsbuild/core'
import { pluginLess } from '@rsbuild/plugin-less'
import { pluginReact } from '@rsbuild/plugin-react'

export default defineConfig({
  plugins: [pluginReact(), pluginLess()],
  html: {
    title: 'Monorepo App',
  },
  server: {
    port: 3000,
  },
  source: {
    entry: {
      index: './src/index.tsx',
    },
  },
  output: {
    cssModules: {
      localIdentName: '[local]__[hash:base64:5]',
    },
  },
  performance: {},
})
